GStreamer i.MX8 Pipelines
The RidgeRun GStreamer Browser Sink documentation from RidgeRun is presently being developed. |
i.MX8 Pipelines
The following pipelines use the sample rrbrowsersink.js file and the index.html provided in the evaluation version and the repository. This files can be modified or changed depending on your requirements but in general the same pipelines can work.
File to Browser
The following pipeline reads a video file and then streams it to the page by using the rrbrowsersink element.
VIDEO=<PATH_TO_VIDEO_FILE> gst-launch-1.0 filesrc location=$VIDEO ! qtdemux ! h264parse ! avdec_h264 ! queue ! videoconvert ! queue ! identity sync=true ! x264enc key-int-max=30 speed-preset=ultrafast tune=zerolatency bitrate=5000 ! h264parse ! rrbrowsersink port=8080 reliable=false async-handling=true
You can also read an image and then deploy it in the browser as follows.
IMAGE=<PATH_TO_IMAGE_FILE> gst-launch-1.0 filesrc location=$IMAGE ! jpegparse ! jpegdec ! imagefreeze ! queue ! videoconvert ! queue ! identity sync=true ! x264enc key-int-max=30 speed-preset=ultrafast tune=zerolatency bitrate=5000 ! h264parse ! rrbrowsersink port=8080 reliable=false async-handling=true
Test to Browser
The following pipeline shows how to use videotestsrc to generate a test in i.MX8.
gst-launch-1.0 videotestsrc is-live=true ! queue ! videoconvert ! queue ! x264enc key-int-max=30 speed-preset=ultrafast tune=zerolatency bitrate=5000 ! h264parse ! rrbrowsersink port=8080 reliable=false